using Microsoft.Extensions.DependencyInjection;
namespace Acl.DistributedMessages.TestServer{
    internal static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            // To customize application configuration such as set high DPI settings or default font,
            // see https://aka.ms/applicationconfiguration.
            ApplicationConfiguration.Initialize();

            var provider = new ServiceCollection().AddLogging()
              .AddDistributionMessageBus(1,"nats://localhost:4222")
              .AddSingleton<Form1>()
              .BuildServiceProvider();

            Application.Run(provider.GetRequiredService< Form1>());
        }
    }
}